home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
util
/
termintr
/
part01
/
bootcode.a
next >
Wrap
Text File
|
1990-10-11
|
1KB
|
35 lines
;Code for boot block to put red and yellow stripes on the screen
;by Russell Wallace 6 Feb 1989
;This code was assembled with Aztec Assembler 3.6a, linked then disassembled
;with DisAsm. The hex dump of the code was typed into CMon, a boot checksum
;was calculated and the 1K boot block was saved to a file. The first 80
;bytes of the file were chopped off with Cut into another file and this was
;then converted with my File2Manx program into an object file for linking
;with the Aztec linker 3.4a. An involved process but you can assemble this
;file then verify that the code produced is the same as the code placed in
;the boot block by the program.
_LVOFindResident equ -96
moveq #80,d0
loop
move.w #200,d1
loop1
move.w #$0f00,$dff180 ;Make screen red
dbf d1,loop1
move.w #200,d1
loop2
move.w #$0ff0,$dff180 ;Make screen yellow
dbf d1,loop2
dbf d0,loop
lea dos_name,a1 ;Do normal boot sequence
jsr _LVOFindResident(a6)
move.l d0,a0
move.l 22(a0),a0
moveq #0,d0
rts
dos_name dc.b 'dos.library',0